﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="ProjektarbeteKlauserSwag.Home" MasterPageFile="~/Main.master" %>

<asp:Content ID="Home" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div id="HomeDiv">

<%--        <h1>Welcome Home!
        </h1>--%>
        <%--<asp:ListView ID="ListView1" runat="server" DataKeyNames="ArticleID" DataSourceID="SqlDataSource1" GroupItemCount="3" OnItemCommand="ListView1_ItemCommand">
            <EmptyDataTemplate>
                <table runat="server" style="">
                    <tr>
                        <td>No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
                <td runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr id="itemPlaceholderContainer" runat="server">
                    <td id="itemPlaceholder" runat="server"></td>
                </tr>
            </GroupTemplate>
            <ItemTemplate>
                <td runat="server" style="">
                    <asp:Image ID="Image1" ImageUrl='<%# Eval("PictureUrl") %>' runat="server" />
                    <br />
                    <strong>ArticleName:</strong>
                    <asp:Label ID="ArticleNameLabel" runat="server" Text='<%# Eval("ArticleName") %>' />
                    <br />
                   <strong>Price:</strong> 
                    <asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
                    SEK
                    <br />
                    <strong>Info:</strong>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Text") %>' />
                    
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table runat="server">
                    <tr runat="server">
                        <td runat="server">
                            <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                <tr id="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td runat="server" style="">
                            <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                <Fields>
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                    <asp:NumericPagerField />
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                </Fields>
                            </asp:DataPager>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <td runat="server" style="">
                    <asp:Image ID="Image1" ImageUrl='<%# Eval("PictureUrl") %>' runat="server" />
                    <br />
                    <strong>ArticleName:</strong>
                    <asp:Label ID="ArticleNameLabel" runat="server" Text='<%# Eval("ArticleName") %>' />
                    <br />
                    <strong>Price:</strong>
                    <asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
                    SEK
                    <br />
                   <strong>Info:</strong> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Text") %>' />


                </td>


            </SelectedItemTemplate>
        </asp:ListView>--%>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KlauserswagConnectionString %>" SelectCommand="SELECT * FROM [Articles]"></asp:SqlDataSource>
    </div>
</asp:Content>

